<table width="195" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="195" height="35" background="images/bgn_sp2.png"><div align="left" style="color:#000000; font-family:Tahoma; font-size: 14px; padding-left:30px">SẢN PHẨM PHỔ BIẾN</div></td>
  </tr>
  <tr>
    <td style="border-left:1px solid #CCCCCC;border-right:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;" align="center"> 
    <marquee direction="up" width="190" height="300px" onmouseover=this.stop() onmouseout=this.start() scrollAmount=3 scrolldelay="1">
    <table width=175 height=220 border=0 cellspacing=0 cellpadding=0 style="border:1px dotted #999" align="center" bgcolor="#333333">           
        <?php
			$sql="select * from sanpham where id_loai=4 and ghichu='hienthi' limit 0,8";
			$kq=mysql_query($sql);
			while($r=mysql_fetch_array($kq))
			{
				$hinh=$r["hinh"];$id=$r["id"];$tensp=$r["tensp"];
				$gia=$r["gia"];$gia2=number_format($gia,0,'','.');
				if($gia==0) $s="( liên hệ )"; else $s=$gia2; 
				echo "<tr><td height=170 align=center>";
				echo "<a href=\"index.php?b=ct&id=$id\"><img src=\"sanpham/small/$hinh\" width=170 height=170 border=0/></td></tr>";
				echo "<tr>
					<td height=25 style=\"font-size:15px; color:#FFF\" align=center><a href=?b=ct&id=$id5 class=a-m><strong>$tensp</strong></a></td>
				  </tr>
				  <tr>
					<td height=25 align=center style=\"border-bottom:1px dotted #FFF; color:#FFF\">Giá: $s</td></tr>";
				 
			}
		?>               
            
    </table>   
    </marquee>
    </td>    
  </tr>
</table>